package com.ruiysoft.crm.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDate;

/**
 * 销售业绩表
 */
@Data
@Accessors(chain = true)
@TableName(value = "Biz_sales_performance")
public class BizSalesPerformance {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 客户姓名
     */
    @TableField(value = "client_name", exist = true)
    private String clientName;
    /**
     * 客户id
     */
    @TableField(value = "client_id", exist = true)
    private String clientId;
    /**
     * 销售日期
     */
    @TableField(value = "sale_date", exist = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDate saleDate;
    /**
     * 销售金额
     */
    @TableField(value = "sales_amount", exist = true)
    private float salesAmount;

    /**
     * 险种
     */
    @TableField(value = "insurance", exist = false)
    private String insurance;
}
